﻿<html>
<head>
<title>main</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<link rel="stylesheet" type="text/css" href="<?php echo CSS_DIR ?>/pagerNav.css" />
<link rel="stylesheet" type="text/css" href="<?php echo CSS_DIR ?>/admin.css" />
</head>
<body>
<br>
<form action="<?php echo url('adminMarket', 'SearTeacher') ?>" method="post">
	<table width="98%" align="center" cellpadding="1" cellpadding="3" cellpadding=i_talbe>

		<tr>
			<td class=head colspan="9">教员搜索</td>
		</tr>
		<tr>
			<td width="8%" align="center"> 姓名：</td>
			<td width="22%" align="left"> <?php echo $form['user']['trueName'] ?> </td>
			<td width="8%" align="center"> 教员编号：</td>
			<td width="22%" align="left"> <?php echo $form['teacher']['teacher_id'] ?> </td>
			<td width="8%" align="center"> 专业：</td>
			<td width="22%" align="left"> <?php echo $form['user']['major'] ?></td>
			<td width="10%" align="center"></td>
		</tr>
		<tr>
			<td align="center">特长学科：</td>
			<td align="left"><?php echo $form['teacher']['advantage'] ?></td>
			<td align="center">学号：</td>
			<td colspan="3"><?php echo $form['teacher']['stuNum'] ?></td>
			<td align="center">
				<input type="submit" value="查询" />
			</td>
		</tr>
	</table>
</form>
<table width=98% align=center cellspacing=1 cellpadding=3 class=i_table>
<tr><td class=head>教 员 管 理</td></tr>
<tr><td class=b>
	<table class="listTb">
	  <tr class="title">
		<td width="10%">教员编号</td>
		<td width="10%">姓名</td>
		<td width="7%">性别</td>
		<td width="10%">学号</td>
		<td width="15%">学院</td>
		<td width="15%">特长学科</td>
		<td width="8%">贫困生</td>
		<td width="10%">培养层次</td>
		<td width="15%">操作</td>
	  </tr>
	  <tr><td colspan="9">&nbsp;</td>
	  <?php foreach( $lists as $list ) { ?>
	  <tr class="list">
		<td><?php echo $list['user_id'] ?></td>
		<td><?php echo $list['user']['trueName'] ?></a></td>
		<td><?php echo $list['user']['sex'] ?></td>
		<td><?php echo $list['user']['num'] ?></td>
		<td><?php echo $list['user']['college'] ?></td>
		<td><?php echo $list['advantage'] ?></td>
		<td><?php echo $list['user']['poor'] ?></td>
		<td><?php echo $list['user']['userType'] ?></td>
		<td>
		<a href="<?php echo url('adminMarket', 'dispTeacher', array('user_id'=>$list['user']['user_id'])) ?>" title="查看" class="disp">disp</a>
		<a href="<?php echo url('adminMarket', 'deleteTeacher', array('user_id'=>$list['user']['user_id'])) ?>" title="删除" class="delete">Delete</a>
		<a href="<?php echo url('adminMarket', 'restoreTeacher', array('user_id'=>$list['user']['user_id'])) ?>" title="还原" class="restore">还原</a>
		</td>
	  </tr>
	  <tr><td colspan="9"><hr width="99%" /></td>
	  <?php } ?>
	</table>
	<div><?php echo $pagerData ?></div>
</td>
</tr></table>
<br>
<script language="javascript">
var objs = document.getElementsByTagName("div");var old;
for (var i = 0;i < objs.length;i++) {

	var obj = objs[i];
	if (obj.className == "list") {
		obj.onmouseover = function() {
			old = this.style.background;
			this.style.background = "#E2E2FE";
		}
		obj.onmouseout = function() {
			this.style.background = old;
		}
	}
}
</script>
</body></html>